﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="homeList.aspx.cs" Inherits="PeisongWeb.admin.homeList" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>首页管理 - 采购物流配送系统</title>
    <style type="text/css">
        #admin_list_content td
        {
            font-size: 12px;
            line-height: 22px;
            padding: 5px;
            border: 1px solid #666666;
        }
        #admin_list_content a:link
        {
            color: #339933;
            text-decoration: none;
        }
        #admin_list_content a:visited
        {
            color: #339933;
            text-decoration: none;
        }
        #admin_list_content a:hover
        {
            color: #ff6600;
            text-decoration: none;
        }
    </style>
    <!--#include file="style.inc"-->
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            首页列表
        </h2>
        <div id="admin_list_content" style="width: 600px;">
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
                        网站顶部
                    </td>
                </tr>
            </table>
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
                        菜单
                    </td>
                </tr>
            </table>
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="display:none;">
                <tr>
                    <td align="center">
                        顶部提示消息
                    </td>
                </tr>
            </table>
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                <tr>
                    <td align="center">
                        图片广告(四张)&nbsp;&nbsp; <a href="homeEdit.aspx?area=1">[增加]</a>
                        <table>
                            <tr>
                                <asp:Repeater runat="server" ID="rpt_imgList">
                                    <ItemTemplate>
                                        <td>
                                            <a href="#">
                                                <img src="../upload_files/original/<%#Eval("FileName") %>" width="100px" />
                                            </a>
                                            <br />
                                            <%#Eval("text")%>
                                            <span style="float: right">
                                            <a href="homeEdit.aspx?area=1&id=<%#Eval("HomeId") %>"">[编辑]</a>
                                            </span>
                                        </td>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
                        系统消息&nbsp;&nbsp; <a href="homeEdit.aspx?area=2">[增加]</a>
                        <table>
                            <asp:Repeater runat="server" ID="rpt_sysInfoList" OnItemCommand="rpt_list_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%#Eval("Text")%>
                                            <span style="float: right;<%=power>=2?"": "display:none" %>"><a href="homeEdit.aspx?area=2&id=<%#Eval("HomeId") %>"">[编辑]</a>&nbsp;&nbsp;
                                                <asp:LinkButton runat="server" ID="link_Del" OnClientClick="javascript:return confirm('你确定执行此操作吗?')"
                                                    CommandName="Del" CommandArgument='<%#Eval("HomeId") %>' Text="[删除]"></asp:LinkButton></span>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </table>
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="display:none;">
                <tr>
                    <td align="center">
                        最新添加功能&nbsp;&nbsp; <a href="homeEdit.aspx?area=3">[增加]</a>
                        <table>
                            <asp:Repeater runat="server" ID="rpt_list" OnItemCommand="rpt_list_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%#Eval("text") %>
                                        <a href="homeEdit.aspx?area=3&id=<%#Eval("HomeId") %>"">[编辑]</a>&nbsp;&nbsp;
                                                <asp:LinkButton runat="server" ID="link_Del" OnClientClick="javascript:return confirm('你确定执行此操作吗?')"
                                                    CommandName="Del" CommandArgument='<%#Eval("HomeId") %>' Text="[删除]"></asp:LinkButton>
                                           
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
